﻿namespace Basic.Base.Serialization;

public static class SerializerConst
{
    public const string MessagePack = "messagepack";
    public const string MemoryPack = "memorypack";
    public const string Protobuf = "protobuf";
    public const string Json = "json";

    ///// <summary>
    ///// 通用Json序列化配置
    ///// </summary>
    //public static readonly JsonSerializerOptions JsonOption;

    static SerializerConst()
    {
        //JsonOption = new JsonSerializerOptions { PropertyNamingPolicy = JsonNamingPolicy.CamelCase, DictionaryKeyPolicy = JsonNamingPolicy.CamelCase };
        //JsonOption.Converters.Add(new DateTimeConverterParser());
        //JsonOption.Converters.Add(new DateTimeNullableConverterParser());
        //JsonOption.Converters.Add(new DateTimeOffsetConverterParser());
        //JsonOption.Converters.Add(new DateTimeOffsetNullableConverterParser());
    }

}